package com.fingard.dsp.bank.reqrespobj.virtual;

import com.fingard.constant.Format;
import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.text.StringHelper;

import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;

public class ReqVirtualOrder extends RequestBase {

    /**
     * 己方账号
     */
    public String ownAct = "";

    /**
     * 虚拟户编号
     */
    public String virtualAccount;

    /**
     * 虚拟户户名
     */
    public String virtualName;

    /**
     * 订单号
     */
    public String rdSeq;


    public ReqVirtualOrder(HashMap<String, String> p_hashMap, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;

        if (p_hashMap.containsKey("OurBankAccount")) {
            ownAct = p_hashMap.get("OurBankAccount");
            if (ownAct == null) {
                ownAct = "";
            }
        }

        if (p_hashMap.containsKey("VirtualAccount")) {
            virtualAccount = p_hashMap.get("VirtualAccount");
        }

        if (p_hashMap.containsKey("VirtualName")) {
            virtualName = p_hashMap.get("VirtualName");
        }

        if (p_hashMap.containsKey("RdSeq")) {
            rdSeq = p_hashMap.get("RdSeq");
        }

    }
}